<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>P05_对齐与排列.html</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.css">
    <style>
        .row {
            border: 1px red dashed;
            margin: 10px 0;
            height: 100px;
        }

        .ca {
            border: 1px pink solid;
            background-color: lightgray;
            height: 30px;
        }
    </style>
</head>
<body>
<center>align-items-start</center>
<div class="container">
    <div class="row align-items-start">
        <div class="ca col-sm">第一列</div>
        <div class="ca col-sm">第二列</div>
        <div class="ca col-sm">第三列</div>
    </div>
</div>
<center>align-items-center</center>
<div class="container">
    <div class="row align-items-center">
        <div class="ca col-sm">第一列</div>
        <div class="ca col-sm">第二列</div>
        <div class="ca col-sm">第三列</div>
    </div>
</div>
<center>align-items-end</center>
<div class="container">
    <div class="row align-items-end">
        <div class="ca col-sm">第一列</div>
        <div class="ca col-sm">第二列</div>
        <div class="ca col-sm">第三列</div>
    </div>
</div>
<center>align-self</center>
<div class="container">
    <div class="row">
        <div class="ca col-sm align-self-start">第一列</div>
        <div class="ca col-sm align-self-center">第二列</div>
        <div class="ca col-sm align-self-end">第三列</div>
    </div>
</div>
<center>justify-content-start</center>
<div class="container">
    <div class="row justify-content-start">
        <div class="ca col-sm-3">第一列</div>
        <div class="ca col-sm-3">第二列</div>
        <div class="ca col-sm-3">第三列</div>
    </div>
</div>
<center>justify-content-center</center>
<div class="container">
    <div class="row justify-content-center">
        <div class="ca col-sm-3">第一列</div>
        <div class="ca col-sm-3">第二列</div>
        <div class="ca col-sm-3">第三列</div>
    </div>
</div>
<center>justify-content-end</center>
<div class="container">
    <div class="row justify-content-end">
        <div class="ca col-sm-3">第一列</div>
        <div class="ca col-sm-3">第二列</div>
        <div class="ca col-sm-3">第三列</div>
    </div>
</div>
<center>justify-content-around</center>
<div class="container">
    <div class="row justify-content-around">
        <div class="ca col-sm-3">第一列</div>
        <div class="ca col-sm-3">第二列</div>
        <div class="ca col-sm-3">第三列</div>
    </div>
</div>
<center>justify-content-between</center>
<div class="container">
    <div class="row justify-content-between">
        <div class="ca col-sm-3">第一列</div>
        <div class="ca col-sm-3">第二列</div>
        <div class="ca col-sm-3">第三列</div>
    </div>
</div>
<center>order-n</center>
<div class="container">
    <div class="row justify-content-around">
        <div class="ca col-sm-3 order-3">第一列</div>
        <div class="ca col-sm-3 order-2">第二列</div>
        <div class="ca col-sm-3 order-1">第三列</div>
    </div>
</div>
<center>order-first / order-last</center>
<div class="container">
    <div class="row justify-content-around">
        <div class="ca col-sm-3 order-last">第一列</div>
        <div class="ca col-sm-3">第二列</div>
        <div class="ca col-sm-3 order-first">第三列</div>
    </div>
</div>
<center>offset-N偏移量</center>
<div class="container">
    <div class="row">
        <div class="ca col-sm-3 offset-1">第一列</div>
        <div class="ca col-sm-3">第二列</div>
        <div class="ca col-sm-3">第三列</div>
    </div>
</div>
<center>ml-N、mr-N微调</center>
<div class="container">
    <div class="row">
        <div class="ca col-sm-3 ml-2">第一列</div>
        <div class="ca col-sm-3 ml-2 mr-2">第二列</div>
        <div class="ca col-sm-3">第三列</div>
    </div>
</div>
<center>ml-auto、mr-auto</center>
<div class="container">
    <div class="row">
        <div class="ca col-sm-3 ml-auto">第一列</div>
        <div class="ca col-sm-3 ml-auto">第二列</div>
        <div class="ca col-sm-3">第三列</div>
    </div>
</div>
<div class="container">
    <div class="row">
        <div class="ca col-sm-3 mr-auto">第一列</div>
        <div class="ca col-sm-3">第二列</div>
        <div class="ca col-sm-3">第三列</div>
    </div>
</div>
</body>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
</html>